home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / what's new / sample code / human interface toolbox / packagetool / packagewindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-22  |  2.0 KB  |  68 lines

  1. /*
  2.     file PackageWindow.h
  3.     
  4.     Description:
  5.     This file contains routine declarations used for accessing the main
  6.     window displayed by the PackageTool application.
  7.     
  8.     PackageTool is an application illustrating how to create application
  9.     packages in Mac OS 9.  It provides a simple interface for converting
  10.     correctly formatted folders into packages and vice versa.
  11.  
  12.     by John Montbriand, 1999.
  13.  
  14.     Copyright: © 1999 by Apple Computer, Inc.
  15.     all rights reserved.
  16.     
  17.     Disclaimer:
  18.     You may incorporate this sample code into your applications without
  19.     restriction, though the sample code has been provided "AS IS" and the
  20.     responsibility for its operation is 100% yours.  However, what you are
  21.     not permitted to do is to redistribute the source as "DSC Sample Code"
  22.     after having made changes. If you're going to re-distribute the source,
  23.     we require that you make it clear in the source that the code was
  24.     descended from Apple Sample Code, but that you've made changes.
  25.     
  26.     Change History (most recent first):
  27.     10/19/99 created by John Montbriand
  28. */
  29.  
  30.  
  31. #ifndef __PACKAGEWINDOW__
  32. #define __PACKAGEWINDOW__
  33.  
  34. #include <Types.h>
  35. #include <Files.h>
  36. #include <Windows.h>
  37.  
  38. /* CreatePackageWindow creates the package window.  If it cannot be
  39.     created, then an error is returned. */
  40. OSStatus CreatePackageWindow(void);
  41.  
  42.  
  43. /* ClosePackageWindow closes the package window and disposes of
  44.     any structures allocated when it was opened. */
  45. void ClosePackageWindow(void);
  46.  
  47.  
  48. /* SetNewDisplay is to set the display to a new package or folder.  If
  49.     targetFile is NULL, then the display is cleared. */
  50. void SetNewDisplay(FSSpec *targetFile);
  51.  
  52.  
  53. /* IsPackageWindow returns true if the window pointed to by
  54.     target is the package window. */
  55. Boolean IsPackageWindow(WindowPtr target);
  56.  
  57.  
  58. /* ActivatePackageWindow handles an activate event for the
  59.     package window. */
  60. void ActivatePackageWindow(WindowPtr target, Boolean activate);
  61.  
  62.  
  63. /* HitPackageWindow should be called when DialogSelect indicates
  64.     that an item in the package window has been hit. */
  65. void HitPackageWindow(DialogPtr theDialog, EventRecord *event, short itemNo);
  66.  
  67. #endif
  68.